package com.smartstate.autoMaticControl.vo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 报警信息
 */
@Data
@ApiModel(description = "报警信息")
public class AlarmVo {


    @TableField(value = "id")
    @ApiModelProperty(value = "报警id")
    @ExcelIgnore
    private String id;


    @TableField(value = "id")
    @ApiModelProperty(value = "楼宇Id")
    private String objId;


    @TableField(value = "objName")
    @ApiModelProperty(value = "楼层区域")
    @ColumnWidth(20)
    @ExcelProperty("楼层区域")
    private String objName;


    @TableField(value = "eName")
    @ApiModelProperty(value = "设备名称")
    @ColumnWidth(20)
    @ExcelProperty("设备名称")
    private String eName;

    @TableField(value = "alarmStop")
    @ApiModelProperty(value = "报警限值")
    @ColumnWidth(20)
    @ExcelProperty("报警限值")
    private String alarmStop;

    @TableField(value = "alarmValue")
    @ApiModelProperty(value = "报警值")
    @ColumnWidth(20)
    @ExcelProperty("报警值")
    private String alarmValue;


    @TableField(value = "attributes")
    @ApiModelProperty(value = "设备属性")
    @ColumnWidth(20)
    @ExcelProperty("设备属性")
    private String attributes;


    @TableField(value = "abnormaltime")
    @ApiModelProperty(value = "异常时间")
    private Date abnormaltime;


    @TableField(value = "tags")
    @ApiModelProperty(value = "属性值")
    @ExcelIgnore
    private String tags;

    @TableField(value = "way")
    @ApiModelProperty(value = "采集方式")
    @ExcelIgnore
    private String way;


    @TableField(value = "deviceId")
    @ApiModelProperty(value = "设备id")
    @ExcelIgnore
    private String deviceId;



    @TableField(value = "type")
    @ApiModelProperty(value = "设备是否离线")
    @ColumnWidth(20)
    @ExcelIgnore
    private String type;


    @TableField(value = "stopTime")
    @ApiModelProperty(value = "异常处理完成时间")
    @ColumnWidth(25)
    @ExcelProperty("异常处理完成时间")
    private String stopTime;


    @TableField(value = "state")
    @ApiModelProperty(value = "状态")
    @ColumnWidth(20)
    @ExcelProperty("状态")
    private String state;

    @TableField(value = "remark")
    @ApiModelProperty(value = "备注")
    @ColumnWidth(20)
    @ExcelProperty("备注")
    private String remark;

    @TableField(value = "types")
    @ApiModelProperty(value = "系统类型")
    private String types;

}